package com.db4o.odbgen.plugins.java.maingenerator.typedxmlschema;


/**
 * 
 * Represents a method parameter.
 * @author liviu
 */
public class TSMethodParameter {

    private String _name;
    private DataType _type;

    /**
     * Constructs a method parameter given it's fields.
     */
    public TSMethodParameter(String name, DataType type){
        this._name = name;
        this._type = type;
    }
    
    /**
     * Returns the type of the parameter.
     */
    public DataType getType(){
        return this._type;
    }
    
    /**
     * Returns the name of the parameter.
     */
    public String getName(){
        return this._name;
    }

}
